﻿using System;
using System.Collections.Generic;
using UnityEngine;

namespace YummyGame.Framework
{
    public class SkillAction_log:SkillAction
    {
        private string msg;
        public override void Reactive()
        {
            SkillActionPrototype_log prototype = Prototype as SkillActionPrototype_log;
            msg = prototype.msg;
        }

        public override ActionRunState Excute()
        {
            Debug.Log(msg);
            return ActionRunState.Success;
        }

        public override ActionRunState Run()
        {
            return ActionRunState.Success;
        }

        public override void Dispose()
        {
            Pools.GetSkillRuntime<SkillAction_log>().Recover(this);
        }
    }
}
